package com.weng.cloud.service8882.feign;

//import com.weng.cloud.feign.LifeService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: weng
 * @Date: 2022/2/19
 * @Description: com.weng.cloud.service8882.feign
 */
@RestController
public class LifeProvider
//        implements LifeService
{

    @Value("${server.port}")
    private String port;

//    @Override
    @RequestMapping(value="/shutDown",method = RequestMethod.GET)
    public String shutDown() {
        System.err.println("访问真实服务实例！！！");
        return "输出配置信息 => "+this.port;
    }
}
